;; -*- coding: utf-8; -*-

;; doxymacx comment tools
(require 'doxymacs)

;; 让 etags 在当前目录和上级目录中搜索 TAGS 文件
(setq tags-table-list '("." ".." "../.."))

;;=============================================================
;; C & C++
;;=============================================================
;; (defun my-c-mode()
;;     (define-key c-mode-map [return] 'newline-and-indent)
;;     (interactive)
;;     (c-set-style "k&r")
;;     (c-toggle-auto-newline)
;;     (c-toggle-hungry-state)
;;     (imenu-add-menubar-index)
;;     (which-function-mode)
;;     )
;; (add-hook 'c-mode-hook 'my-c-mode)
(add-hook 'c-mode-common-hook 'google-set-c-style)
(add-hook 'c-mode-common-hook 'google-make-newline-indent)


;;_+ cpp-mode


;; python-mode
(setq auto-mode-alist (cons '(".py$" . python-mode) auto-mode-alist))
(setq interpreter-mode-alist 
      (cons '("python" . python-mode) interpreter-mode-alist))
(autoload 'python-mode "python-mode" "Python editing mode." t)





